The issue is that the JavaScript array becomes empty after being filled with values
Here is the code I used:
var browserdata = new Array();
// Fill the array with values
browserdata["qqq"] = "zzz";
browserdata["rrr"] = 1;
console.log(browserdata); // This displays an empty array
Expected output: { "qqq" => "zzz", "rrr" => 1 } Actual output: [] (empty array)