Removed JSLint warnings