add course JavaScript