Put methods on JS instance prototypes.
Merge pull request #2 from mcav/object-prototypes

Put methods on JS instance prototypes.