Fixed various issues reported by jshint

Related to JIRA: https://jira.ez.no/browse/EZP-21814

Make sure jshint does not report any error in master so that ezrobot won't comment on pull requests for unrelated jshint issues.