Cellular automata simulation using HTML5 canvas