Tabbar can be initialized automatically without any javascript (see sample code below). You can specify content directly within <div> tag which represents tab.