Move form to a partial, and render as necessary with javascript