refactor percolate()
factor out display update in demoperc
add axes to thresholdest
add css
parametrize margin