particles system html5 canvas

particles are small entities such as a smoke particle , blood or water particle just to give you an idea the first step of particle implementation is a particle manager its role as the name states is to be the super particle instead of deploying a single smoke the particle manager is like a bunch of smoke you can modify the code a few tweaks and it works well on any HTML5 canvas game
well use fire as the particle manager
producing flames whenever needed


I attached a gist with the code