added js examples