Looking to delay the javascript below from running straight away, I imagine a setTimeout function could be combined to achieve this, just not sure how it would be added.
window.setTimeout(function () {
/* place code here */
}, 2000); // 2000 is 2 seconds in milliseconds
I’ll also point out that this doesn’t necessarily need to be accomplished in code if you don’t want; you could make a new timeline (or, if appropriate, use an existing one) that has a timeline action to run your event at a specified time.