HTML Editor written in javascript