fix jslint and jslint errors