$("#newpanel").html("<%= escape_javascript(render('form')) -%>");