Code cleanup, jslint