Fix bad variables and correct JSLint config to catch others.