I haven't had the opportunity to try it myself yet, but it seems like this is the problem PouchDB (http://pouchdb.com/) is designed to solve.
In other words, the client should still be decoupled from the server. But PouchDB looks like it has the right idea on the client.
edit: I realize I Just kind of described an ORM. Sorry.