Moved setTimeout to callback side

The settimeout is still required to break execution and let the specs
finish, but at least it works from within this side.