adding query string to js URLs