Fixing TinyMCE wysiwyg editor and IE9 compatibility

Fixes made:
- Modal popups now closes normally.
- variable picker is now functional in IE9.
- minor usability adjustments