Simplify and beautify the DOM api