fix jshint errors, however unreasonable