Lots of jshint fixes
Merge pull request #41 from lizardsystem/reinout-jshint

Lots of jshint fixes