Javascript library to provide offline and real-time data management for mobile applications