 	var value = _this.$(this).find('option:selected').text(),
 	    $mode =  _this.$(this).val();
 	_this.lang_choice =  $mode;
+    //alert(_this.lang_choice);
 	if(window.localStorage){
 	  window.localStorage.setItem('cm_lang_choice',$mode);
 	}

    @id = @el.data('problem-id')
    @element_id = @el.attr('id')
    @url = @el.data('url')
    @lang_choice = ''
    @editors = []
    # has_timed_out and has_response are used to ensure that are used to
    # ensure that we wait a minimum of ~ 1s before transitioning the check
    # button from disabled to enabled

	if(window.cmeditor){
	  window.cmeditor.setOption('mode',$mode);
	}else{
	  console.log('cmeditor is set afterwards, cool he will get the lang from _this.lang_choice');
	}
	
    }).trigger('change');
