Get the absolute value of a number in Javascript - From http://stackoverflow.com/questions/9353929/get-the-absolute-value-of-a-number-in-javascript/9353954
var x = -25; x = Math.abs(x); // x would now be 25