function stop_watching() {
            for (var i = 0; i < eventTypes.length; i++) {
                watchedNode.removeEventListener(eventTypes[i], eventHandler);
            }
        }
Returns a Promise that will resolve after the specified event or
series of events has occurred.