[TIMOB-8222] Handle setActiveTab in javascript as the tabs are not added u...

When the tabs are added, it is handled in the javascript until open is called which then calls setTabs from javascript. Added code in javascript to handle setActiveTab before tab is opened.

https://jira.appcelerator.org/browse/TIMOB-8222