using jquery fail-safe in custom ckeditor modules