Fire is a project mainly written in ..., it's free.
oldschool fire effect in javascript
You can see it in action over at arachne
Just poke me here on github if you'd like me to quickly explain the fire algorithm - it is dead simple actually.