Json db implement for javascript