added the execute function that inserts the results of running a program into the page