[Cleanup] errors detected by JSLint