Added JSLint config and fixed some issues it found