Fixed JSLint issues