update dom.use(fn) to support plugins