parse and build URL with node module