Pouchdb replication library w/ test...index html could stand cleaning up

Am I hallucinating or does this function not actually process a replication request?