how to attach/extend methods to dom element
<p>Having this html:</p>

<pre><code>&lt;div id='hi1'&gt; aaa &lt;/div&gt;
</code></pre>

<p>When doing:</p>

<pre><code>$('#hi1').sayHi();
</code></pre>

<p>I would like to get an alert saying 'hi'</p>

<p>anybody knows how this is done ?</p>
