fixed jshint and jscs errors