creating client-side code for course list