Added JSHint
Made corrections identified by JSHint