There is no select
method for jQuery UI Tabs in this version. To get your functionality to work you need to change your code to;
$('#ui-tabs').tabs( "option", "active", 2 );
Please read http://api.jqueryui.com/tabs/#option-active for more information on this.
// getter
var active = $( ".selector" ).tabs( "option", "active" );
// setter
$( ".selector" ).tabs( "option", "active", 1 );
Check out this little jsFiddle for an example of it working.