added js demo code
Merge pull request #6 from robtaireeo/master

added js demo code