updating course_detail template's javascript