How to send query parameters in url javascript