fix error by jslint