use time passed into gameLoop() by browser