Javascript functions: one takes in key : value pairs (a literal object) and returns a url-encoded query string. The other takes a url-encoded query string and returns an object.