Update dom.js

Actual Mask elements don't need to be updated because they are not used in the renderer.
Merge pull request #140 from stringa/patch-3

Update dom.js