Minify URLs by converting them from absolute to relative (Node.js)