Fixes jshint issues