Fixed some JShint errors
Merge pull request #44 from kartikm/jshint-fixes-demojs

Fixed some jshint issues