Fix bug with html editor js