javascript fixes; compatibility with django-ckeditor 4.1.2-atl