building components of the Course js object