try alert(""); instead of just alert.

I think that will solve the problem.