js script to catch the status of log gathering, once 200 is received download button appears