Help with JS Function

Hi,
Is it possible that the name of the dataset element is dataset1 (default name) ?
If it still doesn’t work please share a link to your site and specify the name of the relevant page.
Roi