How to use java script in snaps to replace accented characters?

Hi, I am trying to load data from snaplogic into workday. I have a requirement to remove the accented characters from some fields and replace them. For example - “á” changes to “a” or “Ê” changes to “E” and so on. I have found a java script which can do this. How can I use this java script in my pipeline so that it can replace these characters?

Have you taken a look at the Script Snap?