Here you can find the source of norm(value, min, max)
Math.norm = function(value, min, max) { return (value - min) / (max - min); };