anchor.diff:  
         // set regex for parsing error traces based on the mode of the main file.
         if( $(element).parent().data('role') == "main_file"){
  -        var mode = $(element).data('mode');
  -        if(mode == "ace/mode/python"){
  -          tracepositions_regex = tracepositions_regexes.python;
  -        } else if (mode = "ace/mode/java"){
  -          tracepositions_regex = tracepositions_regexes.java;
  -        }
  +        tracepositions_regex = regex_for_language.get($(element).data('mode'));
         }
   
         var file_id =  $(element).data('id');
  
positive.code: 
    if ($('#editor').isPresent()) {
        if (isBrowserSupported()) {
            initializeCodePilot();
            $('.score, #development-environment').show();
            configureEditors();
  
negative.code:     $('#download').on('click', downloadCode);
      $('#request-for-comments').on('click', requestComments);
    };
  
  
    var initializeRegexes = function(){
      regex_for_language.set("ace/mode/python", /File "(.+?)", line (\d+)/g);
      regex_for_language.set("ace/mode/java", /(.*\.java):(\d):/g);
    }
  
    var initializeTooltips = function() {
      $('[data-tooltip]').tooltip();
  