use raf from npm