mutation observer fix and change to single quotes and 2 space indent

fixes #5 and pouchdb/pouchdb#1833