Setup getCoursePermission on client side.

Signed-off-by: tungpham31 <tungpham31@gmail.com>
Reformat index.html.

Signed-off-by: tungpham31 <tungpham31@gmail.com>
Successully display courses' permission.

Signed-off-by: tungpham31 <tungpham31@gmail.com>