minor refactoring in DOM.emmet
add valueOf implementation, drop DOM.VERSION