jsLint warnings fixed