How to get current URL with parameters in JavaScript?