Math.sign: How to Check if a Number is Positive or Negative in JavaScript