Browser mod, javascript help

Hello.
I am trying to create a javascript window scrolling automation with the browser mod integration. I get it to work but, but not with smooth scrolling.

I need something like this to work with the browser mod: javascript integration:

window.scrollTo({
  top: 100,
  left: 100,
  behavior: "smooth",
});

This is working:

service: browser_mod.javascript
target:
device_id: 1111111
data:
code: window.scrollTo(0, 0);