$('#content').html('<%= escape_javascript(render :template => 'repositories/newrepo', :formats => [:html]) %>');