Simple javascript markup editor