updating sample.js
Merge pull request #13 from tleung999/sampleupdate

updating sample.js