Course setup now generates list dynamically on page load. Combination of my changes and Aarins.
Data is fed from an array in the js right now - still need to hook up to real data.