refactors markdown_area and translate it to coffescript