Update tabs.js to better support dynamically adding tabs.

I'd like to be able to dynamically add tabs to a page.  Right now, the click() handler is only applied to tabs that exist when the tabs are initialized.  By moving the handler from the a node to the ul node, any tabs added later should work just fine.