address jscs, jshint issues