jshint valid and small fix
Merge pull request #1 from SimonWaldherr/valid

jshint valid and small fix