https://wikimass.com/js/math-max