Modular dom library