Issue #99 Update client state after ajax

We weren't updating the client state from the cookie on ajax calls.