patched jshint errors