FIxed global variable issue
Improved JSLint configuration