JSLint fixes

JSLint errors are fixed.