Using virtual dom to search for courses