Courses update

fixed up course creation, added a course index and created course.js