Fix JS object serialization to handle prototypes properly.
Fix JS object serialization to handle prototypes properly.

sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata