Extending Browser library with a JavaScript module - Keyword not defined

Hi - I am trying to get the example from here https://marketsquare.github.io/robotframework-browser/Browser.html#Extending%20Browser%20library%20with%20a%20JavaScript%20module
to work.

But I get “No keyword with name ‘myGoToKeyword’ found.”

If I change the code to …
Execute Javascript myGoToKeyword playwright.dev

I get…
Error: page.evaluate: Evaluation failed: ReferenceError: myGoToKeyword is not defined
at eval (eval at evaluate (:338:25), :1:1)
at eval ()
at UtilityScript.evaluate (:338:25)
at UtilityScript. (:1:44)