Master Detail/ Tabbed phonegap app