Pug (jade) not working

I cant see the problem in the code im trying to remix from another project. Can you help please?

<!DOCTYPE html>
html(lang="en")
    head
        meta(charset="UTF-8")
        meta(name="viewport", content="width=device-width, initial-scale=1.0")
        meta(http-equiv="X-UA-Compatible", content="ie=edge")
        title Remote Web Browser
        style
            | body { position: relative; }
            | a { display:block; position: absolute; }
            
          
       
        form(action="view", method="get")
            input(type="search", name="url", placeholder="Keyword or URL")
            input(type="hidden", id="width", name="width")
            input(type="hidden", id="height", name="height")
    body
        image(src=imageUrl)
        each anchor in anchorData
         ---> (the error is here) <---  a(href=`?url=${anchor.href}&width=${width}&height=${height}`, style=`top:${anchor.top}px;left:${anchor.left}px;width:${anchor.width}px;height:${anchor.height}px;`)
        script 
            | for(const a of document.getElementsByTagName('a')) {
            |   a.href = a.href
            |     .replace(/width=[0-9]+/,`width=${window.innerWidth}`)
            |     .replace(/height=[0-9]+/,`height=${window.innerHeight}`);
            | }
            | window.onresize = function(){
            |   for(const a of document.getElementsByTagName('a')) {
            |     a.href = a.href
            |       .replace(/width=[0-9]+/,`width=${window.innerWidth}`)
            |       .replace(/height=[0-9]+/,`height=${window.innerHeight}`);
            |   }
            | }