use jsLint to fix several problems with js coding