I hate to revive such an old thread, but I am finally getting around to troubleshooting this. I've just been living with it. I've taken a look at the source code for a page with a JB gallery that is working and a gallery that isn't, and it looks like WP is inserting something.
Good code:
<!--START JUICEBOX EMBED--><br />
<script src="/wordpress/wp-content/Juicebox_Galleries/MakerSquare2/jbcore/juicebox.js"></script><br />
<script>
new juicebox({
baseUrl : '/wordpress/wp-content/Juicebox_Galleries/MakerSquare2/',
containerId : 'juicebox-container',
galleryWidth : '800',
galleryHeight : '600',
backgroundColor: '#222222'
});
</script></p>
<div id="juicebox-container"></div>
Bad code:
<p><!--START JUICEBOX EMBED--><br />
<script src="/wordpress/wp-content/Juicebox_Galleries/Harmontown/jbcore/juicebox.js"></script><script>// <![CDATA[
new juicebox({
baseUrl : '/wordpress/wp-content/Juicebox_Galleries/Harmontown/',
containerId : 'juicebox-container',
galleryWidth : '800',
galleryHeight : '600',
backgroundColor: '#222222'
});</p>
<p>// ]]></script></p>
<div id="juicebox-container"></div>
It's added a few things in there, seemingly at random. Has anyone else had this problem? It's happened with every version of WordPress (I'm on 4.0 now).