Donny Mack provides an explanation of how to use Google's spell checking api on the client with the webservice behavior.  I'd prefer one that just uses the XMLHTTPRequest, but it's a starting point.