I am trying to run this JS code to scroll the window down:

WV.jsRunAsync "window.scrollBy({ top: 300, behavior: "smooth" });"

It does not work. What am I doing wrong?