Fault tolerant messaging between browser and server