Ran project through JSHint and fixed issues