use _.register to simplify code, update readme
introduce DOM.register