javascript to switch selected tabs in phone view of services