setTimeout to requestAnimationFrame; close #10