Added JSHint. Made changes to make project pass JSHint tests