Set up validation_messages so that it goes through the RequireJS optimizer.
Simply check for existing text and type.