added a workaround for jsdom only giving valid location objects after se...

...tting the hash