Shortening some features in core/DOM.js