Moved code to singleCheck.js. Per the name this code only attempts to connect once, after that it gives up. I will integrate the polling functionality from checker.js at a later date. I needed to separate the development of the page manipulations from that functionality.