Lib: fix Url.get_fragment

Do not rely on location.hash (to get the fragment) anymore so we have the same behavior on different browsers (firefox vs other)