title: Magento javascript double called and wrong path
body: <p>Magento calls my merged javascript file but also calls other "loose" javascript files.
  This only happens on the category and productpages.</p>
  
  <p>The extra javascript files have the wrong path, so there are 404 errors.
  for example: url.com/category/sub-category/js/bieb/jquery.sortportfolio.min.js</p>
  
  <p>See also the magento website: <a href="http://ongedierteproducten.nl/boktor/boktor-bestrijdingsmiddelen/embasol-boktor-dood-5-liter-20-m2" rel="nofollow">http://ongedierteproducten.nl/boktor/boktor-bestrijdingsmiddelen/embasol-boktor-dood-5-liter-20-m2</a></p>
  
  <p>How do I solve this? Thanks in advance.</p>