javascript subscriber with DOM2/3.