title: Using innerHTML.repalce to replace text with img element
body: <p>I'm writing a <a href="http://pastebin.com/raw.php?i=LYQEpSTw" rel="nofollow noreferrer">script</a> to add extra smileys to the Gmail chat.<br>
  Its working partially, i'm stuck with the innerHTML.replace method @line 33
  <br><br>
  If you see, the regex in the replace method is passed using a variable. This is where the script is choking.<br>
  If i replace the variable with the actual regex, it works fine :|</p>