Moved rating library from index.php to course.php