Created Tabs class to represent jQuery UI tabs.
Added support to Realtime.sendJavaScript to wait for id even when not realtime.