Use polyfill instead of ECMAScript 6 Math.sign().