I think the Ajax pattern is exactly what this project should follow. It takes Javascript and XML and works with a Java backend.
http://www-128.ibm.com/developerworks/library/j-ajax1/