jshint related fixes