Basic reloading version of script working
Stop the reloading if the process has stopped running
Changed to loading the output by xmlhttprequest