Create rewriter.js