Add request animation frame
Merge https://github.com/megafatsquirrel/2d-lab