Math.sign() not on all browsers