Move CKeditor configuration to a separate JS file

Remove unneeded try-except block
Format fix