shim for rAF, simple init and invalidation cycle