I'll be quick (but not trying to blunt).
A client is using this plugin, specifically the tickcross Rating image / setting.
In short, since you're using inline js (e.g. onmouseover) I think you're going to have to check anything that goes into those. For example, there's down vote msg was something like "It didn't work". Once that ' was added to the inline js it mucked up the js.
I also had to some other fix in that same area. Something needed to be in quotes I think.
I hope this helps. Let me know if you have any questions.
p.s. If you could add some comments to your code that would be helpful to people like me. Nice plugin. Nice that it logs the details but it was somewhat not to easy to debug.