Update dom.js

I add to do this to fix exceptions on target. I don't really see why or when it happens (was not happening on 10.4)