requirejs refactor, ajax forms