Minor code cleanup for tabbedinterfacejs.