optimize FireSprite.js