Implement WS-Security in Javascript

I have a SOAP Service I need to consume. They authorize by using WS-Security. I was able to configure SoapUI like this:

enter image description here

The problem is that I have no idea how to implement this in Javascript. Could maybe someone put me into the right direction?

Halp is highly appreciated 🙂