Adds function to retrieve query string from url