Rewrite, move to jslint.