updated example.js, added npm scripts
Merge pull request #413 from dannycoates/i408

updated example.js, added npm scripts