Fixes jshint complaints