Work with HTML in node and the browser using the same API