Improve lint configuration
document.htmlToDom extension
Use more generic element
Use plain random generator instead of time based
HTMLDocument.generateId utility
Support name string in `getId` method
Improve logic organization