Update references in javascript code
Fix web.xml