replaced frame.js with raf.js