Fix tabs and jQuery 1.9 compatibility

This fixes jQuery UI problems due to the upgrade and an with jQuery 1.9 compatibility.

Fixes issue #187 and issue #189.