Client-side JavaScript database