Split htmlEditor.js into more modules: attributeEditor, htmlLib and htmlReps