Insert the edit form into the dom before rendering it

This allow scripts inside the form to have access to the DOM of the
form.
Get rid of the defer thanks to commit 9afa37b