Fix jshint and jscs failures