Update to pass JSHint