Make BaseGame.frameTime static.
Change SpriteAnimation to use BaseGame.frameTime
Since JS is single threaded anyway, it's fine for it to be static. The
value is set and used in the same method ( render() ).