the jsInterface in GWT 3 might be helpful there, as manually providing the APIs in GWT is error-prone boilerplate.