updated script to work with new html structure of the courses