modify courses.js to be loaded when requuired