javascript document oriented client side db