[dom] Optimize dom-style.js and dom-style-ie.js

There were code lines better to fix some good and some unnecessary variables. I expect to get the one or more efficiency improvement by this change.