Javascript End A Function Python Format Number As Percent