Fix JS issue and differenciate TinyMCE 3 and 4