(#37 / daleharvey/pouchdb#1264) closures in temp views