title: Galleria dynamic Javascript/jQuery issue in Plone
body: <p>So here's the deal. I had a lot of trouble with the true gallery in plone so I bought the Galleria Slideshow with the Twelve Theme.
  I did the normal stuff to run Galleria but now there's a problem.</p>
  
  <p>This is the HTML section:</p>
  
  <pre><code>&lt;div id="content"&gt; 
      &lt;!-- GALLERIA --&gt;
      &lt;div id="galleria"&gt;
      &lt;/div&gt;
      &lt;!-- /GALLERIA --&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>With this rule, I grap all the links with images and put them into my galleria DIV:</p>
  
  <pre><code>&lt;replace css:content=".item a" css:theme-children="#galleria" /&gt;
  </code></pre>
  
  <p>So this is the Result of this operation:</p>
  
  <pre><code>&lt;!-- GALLERIA --&gt;
      &lt;div id="galleria"&gt;
          &lt;a href="..."&gt;
              &lt;img src="..." /&gt;
          &lt;/a&gt;
          &lt;a href="..."&gt;
              &lt;img src="..." /&gt;
          &lt;/a&gt;
          &lt;a href="..."&gt;
              &lt;img src="..." /&gt;
          &lt;/a&gt;
      &lt;/div&gt;
  &lt;!-- /GALLERIA --&gt;
  </code></pre>
  
  <p>So here's the problem.
  Although all js and css files from galleria are successfully loaded, nothing happens. Galleria should put some divs around the images to create the slideshow.</p>
  
  <p>Javascript is turned on. jQuery is working.</p>
  
  <p>Is there anyone who has an idea why this does not work in plone?</p>
  
  <p>EDIT: Chrome drops this error message in his console:</p>
  
  <pre><code>Uncaught SyntaxError: Invalid regular expression: /http://localhost:8080/lox/home/++theme++lox.responsive/galleria/themes/twelve/galleria.twelve.css/: Nothing to repeat galleria-1.2.9.js:847
  (anonymous function) galleria-1.2.9.js:847
  jQuery.extend.each jquery.js:648
  jQuery.fn.jQuery.each jquery.js:270
  Utils.loadCSS galleria-1.2.9.js:846
  (anonymous function)
  </code></pre>