fix jshint/jscs errors