JSLint issue fixes