How to pass params in JQmobile

How to pass params in JQmobile

Hello, I would like to ask:
How to pass params in JQmobile?

I have got html with params 
href="game.html?name=Ellisa&sound=1

and on page "game.html" i want to get this two variables: name and sound.

I tried it to with:
window.location.search.substr(1).split("&")

but this cannot works.

Thanks for any advice.