added sample js
added sample js