move pouchdb code to own js subfolder