Validating programming questions, refactoring and updating CodeMirror JS