jshint/jslint fixes