insertBefore - if element doesnt exists
<p>if the index is larger than the actual number of rows nothing is i appended?</p>

<pre><code>var elm = $('tr', tbl).eq(index);
if(elm){
    row.insertBefore(elm);
}
else{
    row.appendTo(tbl);
}
</code></pre>
