NASTY COMMIT: Added JSHint, and fixed errors