jshint and style fixes