major refacoring. TinyMCE plugin-prototype working