added sample.js file