         if not section
             continue
         materials.push(parseSection(section, sectionId))
-        
+
     materials = await finalizeMaterialsList(materials)
-        
+
     mainPageMaterial = new Material
         _id: "main"
         order: 0


downloadAndParse = (href) ->
    jar = request.jar()
    page = await request 
        url: href
        jar: jar
    document = (new JSDOM(page, {url: href})).window.document

    for activity, i in activities
        materials.push(parseActivity(activity, i))
    materials = await finalizeMaterialsList(materials)

    material = new Material
        _id: +id
        order: id
