Interactive cellular automata using RaphaelJS