Move the code mirror into init