anchor.diff:      <% end %>
   
   
  -    <%= javascript_tag do %>
  +    <%content_for :javascript do%>
         $("#new_file input[type='submit']").click(function(event){
           //AGE
           var resource_type = "<%=resource.class.name.downcase%>";
  
positive.code:         <% initialTags.each do |cnt| %>
            $("#new_file ul.resourceTagList").tagit("add", "<%= cnt %>");
          <%end%>
        </script>
  
        <%unless resource.class.name=="Picture" %>
          <section class="avatar">
  
negative.code:                 "<%=tag%>",
                <%end%>
                ];
        </script>
  
        <%content_for :javascript do%>      
  
          $("#new_file .resourceTagList").tagit({
            watermarkAllowMessage:"",
  