working jqm.navtabs

todo: can we rebuild this js as a jquery mobile extension?