Remove scope issue for js variables in course_detail.html by moving dataTable call in course-detail.js