fixed code editor doesn't show issue when user clicks new button.

Please put the anonymous functions definition in a new line [like here](https://github.com/makersquare/papalote/blob/detect_lang/app/assets/javascripts/controllers/doc-new-controller.js#L2)