Move requestNextAnimationFrame() to the bottom of the file