JSLint: fix issues