title: Can't choose an option on a configurable product, when i merge javascript
body: <p>I have a bit of a problem. I have huge amount of JavaScript on my site, and when i am trying to merge it, i suddenly can't choose an option.</p>
  
  <p>The console in Google Chrome shows this:</p>
  
  <p><strong>Uncaught TypeError: undefined is not a function</strong>
  The code is simply to long</p>
  
  <p><strong>Uncaught TypeError: Cannot read property 'OptionsPrice' of undefined</strong></p>
  
  <pre><code>&lt;script&gt;
      var optionsPrice = new Product.OptionsPrice({"productId":"224","priceFormat":{"pattern":"%s\u00a0DKK ","precision":2,"requiredPrecision":2,"decimalSymbol":",","groupSymbol":".","groupLength":3,"integerRequired":1},"includeTax":"true","showIncludeTax":true,"showBothPrices":false,"productPrice":29,"productOldPrice":29,"priceInclTax":29,"priceExclTax":29,"skipCalculate":1,"defaultTax":25,"currentTax":25,"idSuffix":"_clone","oldPlusDisposition":0,"plusDisposition":0,"plusDispositionTax":0,"oldMinusDisposition":0,"minusDisposition":0,"tierPrices":[],"tierPricesInclTax":[]});
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>Uncaught TypeError: Cannot read property 'Config' of undefined</strong></p>
  
  <pre><code>&lt;script&gt;
          var spConfig = new Product.Config({"attributes":{"145":{"id":"145","code":"size","label":"St\u00f8rrelse","options":[{"id":"32","label":"10ml","price":"0","oldPrice":"0","products":["225","226","227","228"]},{"id":"31","label":"30ml","price":"30","oldPrice":"30","products":["229","230","231","232"]}]},"146":{"id":"146","code":"styrke","label":"Styrke","options":[{"id":"36","label":"0mg","price":"0","oldPrice":"0","products":["225","229"]},{"id":"35","label":"6mg","price":"0","oldPrice":"0","products":["226","230"]},{"id":"34","label":"12mg","price":"0","oldPrice":"0","products":["227","231"]},{"id":"33","label":"18mg","price":"0","oldPrice":"0","products":["228","232"]}]}},"template":"#{price}\u00a0DKK ","basePrice":"29","oldPrice":"29","productId":"224","chooseText":"--V\u00e6lg venligst--","taxConfig":{"includeTax":true,"showIncludeTax":true,"showBothPrices":false,"defaultTax":25,"currentTax":25,"inclTaxTitle":"Inkl. moms"}});
      &lt;/script&gt;
  </code></pre>
  
  <p><strong>Uncaught Reference Error: Calendar is not defined</strong> </p>
  
  <pre><code>Calendar._DN = ["s\u00f8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\u00f8rdag"]; // full day names
  </code></pre>
  
  <p>I hope there is someway that you can help me.
  I am on a Magento platform, with a custom template.</p>
  
  <p>Thanks</p>