Added ajavascript for course form