Added function to parse api response to HTML

parse_to_HTML() takes the response from the api call and formats it to a valid HTML element. It returns the completed HTML string, which is concatenated to the category container's innerHTML by the caller.