Remove unneeded try-except block
Move CKeditor configuration to a separate JS file
Fix pep8 errors