Function Call With A Parameter - What Am I Doing Wrong?

In case it’s useful, there’s another solution to this here. It definitely works (but doubtless could be improved).

I put the notification in the js function, using:
dmx.parse("notifies1.success('successfully copied')");