add polyfill for Math.sign.