Ran JSHint and fixed issues