Put methods on JS instance prototypes.