try using the global setTimeout