Fixed various issues reported by jshint
Changed: test files are also checked by jshint