fixed JS for TinyMCE with inlinepopups plugin