title: Convert text to smileys without refresh
body: <p>I just saw that Facebook provides a new feature in its messaging that is converting text directly into smiley without reloading the page. So I would like to reproduce the same system using jquery and html5. Currently I have no idea how to create this system, any idea ? </p>
  
  <p>Code use to convert into smileys : </p>
  
  <pre><code> var e = $('body');
  e.html(
      e.html()
      .replace(/\s:\)/g, " &lt;img src='http://img/img.gif' /&gt;")
  
  );
  </code></pre>