path to regexp for the browser and node.js