This is a simple example of how to verify a signature in javascript. The example uses crypto to verify the signature and axios to fetch the keys.
To run the example you can run node main.js.
main.js contains an example of how to verify the signature.