The querystring is available via the window.location object, as window.location.search
Everything else stems from that.
The question mark at the start is of no use to you.
The terms are divided by ampersands.
Each term is divided by the equals sign.
So it's up to you to decide whether you want to split things up and interpret them accordingly, or to use a small library to do the job for you.