document.addEventListener('unii:ticket:purchased', function (event) { setTimeout(function() { window.location.assign('www.facebook.com'); }, 10000); }, false);