Replacing JavaTM Platform, Enterprise Edition (Java EE) Web application functions with Ajax