How to use this JS in OB2?

Hi I need help to run a JS in Puppeteer! For openbullet 1 I’ve used the “Execute JS” block which perfectly worked. But for ob2 I wasn’t able to get it working. Thank’s for any help!

The Script:

let token = "your token";

function login(token) {
    setInterval(() => {
      document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
    }, 50);
    setTimeout(() => {
      location.reload();
    }, 2500);
  }

login(token);
BLOCK:PuppeteerExecuteJs

  => VAR @puppeteerExecuteJsOutput

ENDBLOCK

Paste that Lolicode to create the block. The block is held in Puppeteer → Page → ExecuteJS