construct the code mirror on local server.