[Bank Statement Download Script] Set link or perform JavaScript?

Don't change anything in the XPath that you copy using the Chrome tool.
Just copy it, and paste directly into the KM Action Set Variable to Text.

I just posted a more complete macro: