Some JS examples
added js examples to index