simulating smoke with canvas and javascript (slow fps on ff)