Javascript Numeric Math Utilities