Ran through JSHint and fixed all errors.