Add DOM listener for communicating with tester.