JS fix for TinyMCE, adjusted to work on Webkit #15