intro to js examples