js examples in prototypes