fixed jsLint errors