Cleaned up dom module.