A JavaScript library and App Engine-based Java proxy to enable analytics to be reliably collected for offline-capable Web Apps