fix courses.html search funtion