JavaScript: retrieve query string parameters from URL (GET)