Very simple change required to make index.html not reuse existing minMax when making a new call to grayToCanvas().