Added JSLint options
Added test for better coverage