Fixing XSS in JavaScript (tab title + wijgrid)