Fix a bug that does not load CKEDITOR if form.media.js is loaded at end of page (common technique to load js after DOM is ready).