add dom lib to commonjs loading