Whenever I get an error like that and I really donβt see it, I start smearing the code over as many lines as possible, indenting on every (, ), { and }. Usually that will make the error obvious fairly fast.
In this case
var datasets =
xmlhttp.responseText.match
(
/^#(.[^#]*)/gm).map
(
function(item)
{
return eval
(
"(" + item.replace
(
/^#/,''
)
+ ")"
[COLOR="Red"]// there should be a closing parenthesis here, but there isn't !![/COLOR]
}
)
);