Working some javascript for Course modifications