An ajax form snippet preserving the attributes from the original form