fix js hint errors in index.js
Merge pull request #9 from worldspawn/fix/fixjshinterrors

fix js hint errors in index.js