move raf call
rewrite test.js to use crtrdg-mouse