Refactor particle system into fire.js