Tiny DataBase (indexed data store) implementation in JavaScript