Securing the Front-End from Xss attack