fixed JSLint warnings