JavaScript helper to construct/deconstruct URL hashmaps.