update code mirror