fixes jshint issues