title: How to change/add content inside javascript
body: <p>I am trying to figure out how to add some text or even adsense to what I believe is .js</p>
  
  <p>Its a working lightbox with a description caption at the bottom, and that caption is what I wish to change.</p>
  
  <p>The code here:</p>
  
  <pre><code>  captionOn = function () {
        var description = $CurrEl.attr('title');
        console.log( description );
        if (description != undefined &amp;&amp; description.length &gt; 0) {
            $('&lt;div id="imagelightbox-caption"&gt;' + description 
              + '&lt;/div&gt;').appendTo('body');
        }
    },
    captionOff = function () {
        $('#imagelightbox-caption').remove();
    },
  </code></pre>
  
  <p>I have figured out that what I need to change is somewhere around + description +, I have tried to change the word description with plain text, with and without the two + symbols, but that breaks the lightbox. 
  That means + description + is needed for lightbox to work, so I tried to use this instead:</p>
  
  <pre><code>+ "&lt;div class="align_left"&gt;" + description + "&lt;/div&gt;" 
  + "&lt;div class="align_right"&gt;" + Adsense_code + "&lt;/div&gt;" +
  </code></pre>
  
  <p>But that doesn't work, either with or without the + symbols.</p>
  
  <p>So as for now I'm all out of ideas and in search. Keeping the description could be a good thing for image-info for the viewers, but how do I then add text or code next to the description?</p>