lib/checks.js
function (callback) {
            getData.takeSnapshot(page, ph, function (error, page, ph, dom) {
                if (error) {
                    callback (error);
                    return;
                }

                originalDom = dom;
                callback();
            });
        }
function (callback) {
            getData.takeSnapshot(page, ph, function (error, page, ph, dom) {
                if (error) {
                    callback (error);
                    return;
                }

                originalDom = dom;
                callback();
            });
        }
function ( callback ) { getData . takeSnapshot ( page , ph , function ( error , page , ph , dom ) { if ( error ) { callback ( error ) ; return ; } originalDom = dom ; callback ( ) ; } ) ; }
save the initial dom
save the initial dom