fix can't require dom