Remove use of Math.sign (unknown to Chrome).