require replicate once, and then set it from the object

```javascript
var replicate = require('./replicate');
PouchDB.replicate = replicate.replicate;
 PouchDB.sync = replicate.sync;
```