changes suggested by JSLint