Use window.location.search to populate MODx.request

### What does it do ?

Makes use of `window.location.search` to populate `MODx.request`, instead of `document.location.href`

### Why is it needed ?

`location.href` contains the potential hash (ie. `uri?param=value#hash`).
Considering the previous example, with the current code, `MODx.request.param` value would be `value#hash` when it should be `value`.
This PR aims to allow hash usage without messing with "request parameters".