Altered HTML and JS to allow thresholds to be changed.

Thanks so much for creating this code, I am using it to investigate Life in 3D, I have added some changes to allow the thresholds to be adjust via selects in the HTML.