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

Comment chain @https://github.com/FinalsClub/karmaworld/commit/bd1f369355a2150bcfbbd79138a483b2a6c40546