jslint rewrite