Add tinymce
Use the js Config hook ...

... in order to inject configuration options (here: language) into the
java script code (get rid of the home-brewn stuff).