updated cms.js to accommodate redactor