Update dom.js

Actual Mask elements don't need to be updated because they are not used in the renderer.