diff --git a/inc/class.schedule.php b/inc/class.schedule.php
--- a/inc/class.schedule.php
+++ b/inc/class.schedule.php
@@ -564,7 +564,7 @@ class Schedule
 	    ksort($permutation_courses);
 	    // End of table
 	    echo "        \n"
-              . '         '.  htmlentities(json_encode($permutation_courses)) . "\n"
+              . '         '.  htmlentities(json_encode($permutation_courses)) . "\n"
 	      . '       \n";
 	  }
 
diff --git a/scripts/displayTables.js b/scripts/displayTables.js
--- a/scripts/displayTables.js
+++ b/scripts/displayTables.js
@@ -112,7 +112,7 @@ jQuery(document).ready( function()
 	/* hmm... why isn't this information just stored in a global JS variable? */
 	var tab_i = jQuery('#tabs').tabs('option','selected');
 	var tab_fragment_i = /-([^-]+)$/.exec(jQuery('#the-tabs li:eq(' + tab_i + ') a').attr('href'))[1];
-        var tab_course_data_json_selector = '.course-data-' + tab_fragment_i;
+        var tab_course_data_json_selector = '#tabs-' + tab_fragment_i + ' .course-data';
 	
         var tab_course_data_json = jQuery(tab_course_data_json_selector).text();
         var tab_course_data = eval('(' + tab_course_data_json + ')');