Rewrite path.js