Re-factoring code to handle making the outgoing HTTP request to elements web app and then parse the response from that endpoint