jshint and coding style cleanup