simple data management for javascript