add support for running in Adobe scripts

the Adobe runtime does't have a global setTimeout function