https://peterkellner.net/2010-01-19-finalbuilder-action-scripting-javascript-delay/