DOM XSS issue resolved