Added checks for all the information clientside.
Added CORS support, so that 8080 doesn't make firefox block based on XSS issues