A JavaScirpt implmentation of a simple percolation demo