Parsing error: Unexpected token let

Hi! I have a parsing error on the code on one of my pages.
Here is the code:

// For full API documentation, including code examples, visit https://wix.to/94BuAAs

$w.onReady(function () {
    $w("#dynamicDataset").onReady( () => {
 let title = $w("#dynamicDataset").getCurrentItem().title;
    $w("#button2").label = title + "'s Website" ; 
    $w("#button1").label = title + "'s Zomato Page"
 const itemUrl = $w('#dynamicDataset').getCurrentItem().htmlmap;
     $w('#html1').src = itemUrl;
  }
 let urlMessage = $w('#dynamicDataset').getCurrentItem().HTML map;

        $w("#html1").onMessage( (event) => {

               $w("#html1").postMessage(urlMessage);

                });

There is an unexpected parsing error at let in this line:

let urlMessage = $w('#dynamicDataset').getCurrentItem().HTML map;

Could anyone help me troubleshoot this?

Thanks in advance,
Alex

There’re several errors.
First the number of the opening parenthesis and the closing parenthesis is not even. Count them and see (but maybe you just didn’t post the end of the code).
Second, this is a syntax error (in red):

.getCurrentItem().HTML map;

A field key never contains a space

@jonatandor35
I thought that was supposed to be the field name?
Here is the updated code with the underscore in the field name:

// For full API documentation, including code examples, visit https://wix.to/94BuAAs



$w.onReady(function () {
    $w("#dynamicDataset").onReady( () => {
 let title = $w("#dynamicDataset").getCurrentItem().title;
    $w("#button2").label = title + "'s Website" ; 
    $w("#button1").label = title + "'s Zomato Page"
 const itemUrl = $w('#dynamicDataset').getCurrentItem().HTML_Map;
     $w('#html1').src = itemUrl;
 
 let htmlMessage = $w('#dynamicDataset').getCurrentItem().HTML_Map;

        $w("#html1").onMessage( (event) => {

               $w("#html1").postMessage(htmlMessage);

                });
    });
});

I can easily update it to the field key if needed.

I don’t know what you mean by the parentheses thing. Could you show me what you mean?

When I go into preview mode, I get these errors:

Could you help me with this?

Thanks,
Alex