Fire animation using JavaScript and Canvas