using DOM's url parser