Fix jsHint warnings
Fix more errors
Fix jsHint
Fix more jshint errors
Merge pull request #294 from andrerod/dev

Fix jsHint warnings