dynamic updates for main page course list
js for main page course list