Used AJAX to get the solution to print to the page.