Fixing warning from JSLint