<% if options[:use_default_container] %>
<div id="<%= options[:default_container_id] %>" class="DV-container"></div>
<% end %>
<script type="text/javascript">
  DV.load("<%= options[:resource_js_url] %>", JSON.parse('<%= data.to_json %>'));
</script>
<% if data[:pdf] %>
<noscript>
  <a href="<%#= options[:pdf_url] %>"><%#= options[:title] %> (PDF)</a>
  <br>
  <a href="<%#= options[:full_text_url] %>"><%#= options[:title] %> (Text)</a>
</noscript>
<% end %>

<% if options[:use_default_container] %>
<div id="<%= options[:default_container_id] %>" class="DV-container"></div>
<% end %>
<script type="text/javascript">
  DV.load("<%= options[:resource_js_url] %>", <%= data.to_json %>);
</script>
<% if data[:pdf] %>
<noscript>
  <a href="<%#= options[:pdf_url] %>"><%#= options[:title] %> (PDF)</a>
  <br>
  <a href="<%#= options[:full_text_url] %>"><%#= options[:title] %> (Text)</a>
</noscript>
<% end %>

Stop trying to tame JSON
Stop trying to tame JSON

Revert 43a2f99624491193be9b220da11c5ba58979e7ee and actually fix things. (We were dumping the Ruby-generated JSON between curly braces, when Ruby was already returning it that way.)
