Add CommonJS support for html beautifier