Execute Javascript step fails when using Parameters

Hey,
I’m pretty new to this platform so I’m not sure if I’m doing something wrong or if there’s an issue with the addon.

I’m trying to execute the following code snippet with a stored static argument:

let array = document.querySelectorAll("#mCSB_6_container>ul>li");
if(array.length>0){
console.log(array[0].ariaLabel) ;
let currDate = Date.parse(array[0].ariaLabel) ;
let maxDate = Date.parse({maxDate});
if(currDate<maxDate){
alert("MATCHING DATE FOUND ON "+ array[0].ariaLabel);
}else{
alert("No matching dates were found before: {maxDate}");
}
}

But it fails with the following error:

javascript error: missing ) after argument list