adding search feature to codemirror