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