used jslint to correct some js