--- templates/CRM/common/openFlashChart.tpl
+++ templates/CRM/common/openFlashChart.tpl
@@ -23,12 +23,11 @@
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
 *}
-<script type="text/javascript" src="{$config->resourceBase}packages/OpenFlashChart/js/json/openflashchart.packed.js"></script>
-<script type="text/javascript" src="{$config->resourceBase}packages/OpenFlashChart/js/swfobject.js"></script>
+
 {literal}
 <script type="text/javascript">
     function createSWFObject( chartID, divName, xSize, ySize, loadDataFunction ) {
-       var flashFilePath = {/literal}"{$config->resourceBase}packages/OpenFlashChart/open-flash-chart.swf"{literal};
+       var flashFilePath = "{/literal}{$config->resourceBase}{literal}packages/OpenFlashChart/open-flash-chart.swf";
 
        //create object.
        swfobject.embedSWF( flashFilePath, divName,
