tinymce: split in pattern, links and upload js files to separate functionality