2970 nolan

duplicate PR of https://github.com/tyler-johnson/pouchdb/pull/1 because I want to see if Travis passes