edit url parser

remove parsing with regex, now use node URL module