Updated factories.js and web.xml