<html>
  <head>
    <script src="deps/jquery/jquery-1.5.1.min.js"></script>
    <script src="deps/d3/d3.behavior.min.js"></script>
    <script src="deps/d3/d3.csv.min.js"></script>
    <script src="deps/d3/d3.geo.min.js"></script>
    <script src="deps/d3/d3.geom.min.js"></script>
    <script src="deps/d3/d3.layout.min.js"></script>
    <script src="deps/d3/d3.min.js"></script>
    <script src="deps/d3/d3.time.min.js"></script>
    <script>
      function d3x_render(js, css) {
        var s = document.createElement('style');
        s.innerHTML = css;
        $("head style").replaceWith(s);

        $("body").empty();
        window.eval(js);
      };

      $(document).ready(
        function() {
          parent.iframe_onready();
      });
    </script>
    <style></style>
  </head>
  <body>
  </body>
</html>

<html>
  <head>
    <script src="deps/jquery/jquery-1.5.1.min.js"></script>
    <script src="deps/d3/d3.min.js"></script>
    <script src="deps/d3/d3.behavior.min.js"></script>
    <script src="deps/d3/d3.csv.min.js"></script>
    <script src="deps/d3/d3.geo.min.js"></script>
    <script src="deps/d3/d3.geom.min.js"></script>
    <script src="deps/d3/d3.layout.min.js"></script>
    <script src="deps/d3/d3.time.min.js"></script>
    <script>
      function d3x_render(js, css) {
        var s = document.createElement('style');
        s.innerHTML = css;
        $("head style").replaceWith(s);

        $("body").empty();
        window.eval(js);
      };

      $(document).ready(
        function() {
          parent.iframe_onready();
      });
    </script>
    <style></style>
  </head>
  <body>
  </body>
</html>

Make sure we include d3 first.
Make sure we include d3 first.
