Parse a URL string intro a JS hash map