made changes after running jslint. one error remains