extracted replay.js to pg-migrate on npm