Fix requestAnimationFrame parameter

Changed the requestAnimationFrame parameter type with the usual const EventListener &. This should make rAF work.
Perhaps this problem could be addressed in a more general way