jquery 1.8.3 und jquery ui 1.10 tabs remember after reload

* With
* http://code.jquery.com/jquery-1.8.3.js
* http://code.jquery.com/ui/1.10.0/jquery-ui.js
* jQuery Cookie Plugin v1.3.1
* https://github.com/carhartl/jquery-cookie

 $(function() {
        var setCookieName = 'currentTab';
        var setCookieExpiry = 1; 
        $( "#tabs" ).tabs({
           beforeActivate: function( event, ui ) {
                $.cookie(setCookieName, ui.newTab.index(), { expires: setCookieExpiry, path: '/' });
            }
        });
        var cookie = $.cookie(setCookieName);
        $( "#tabs" ).tabs( "option", "active", parseInt(cookie) );
   
    });