fixes jshint errors