title: Uncaught SyntaxError: Invalid flags supplied to RegExp constructor 'Capture'
body: <pre><code>$("#test_point_geck_info")
    .html("&lt;div id='img_1' class='img_1'&gt;" +
       "&lt;img src = " + ROOT_PATH + 
       "/assets/Capture.PNG onclick=PopImage(" + ROOT_PATH + 
       "/assets/Capture.PNG,'xyz')" +
       " style='cursor:pointer;' class=thumbnail width='100' height='100'&gt;&lt;/div&gt;");
  </code></pre>
  
  <p>Results following on the browser: </p>
  
  <pre><code>&lt;img src="/assets/Capture.PNG" onclick="PopImage(/assets/Capture.PNG,'xyz')" style="cursor:pointer;" class="thumbnail" width="100" height="100"&gt;
  </code></pre>
  
  <p>function that am calling : </p>
  
  <pre><code>function PopImage(imagesrc,caption) {
  var PopupImageContainer = new Image();
  PopupImageContainer.src = PopupImageSRC;
  setTimeout("PopupImageDisplay()",loadDelay);
  
  }
  </code></pre>