numerous changes to course display javascript code