added js examples to index