fix by jslint