How to balance RAF and Timeout for Web Games