This won't work.
```js
var url = 'foo/bar.png#hash';
url = url + '?' + timestamp; // "foo/bar.png#hash?1234567"
if (hash = url.split('#')[1]) { // hash = "hash"
    url = '#' + hash; // "foo/bar.png#hash?1234567#hash" lolno
}
```