Added jshint & fixes for jshint errors
Merge pull request #8 from mikkolehtinen/master

Added jshint & fixes for jshint errors