Fixes jshint warnings