jshint and whitespace cleanup