add js examples: prototype and hoisting