Completed DOM Based XSS sample