a javascript error logger for a couch db project