Update dom.js

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