Fix unreferenced Math.sign method in older Chrome, Safari and more