         if ignore
           return
         logger.debug("A project (#{getQualifiedId(project)}) was added, updating Isotope grid")
-        $projElem = createProjectElement(project)
-        getIsotopeContainer().isotope("insert", $projElem)
+        projElem = createProjectElement(project)
+        getIsotopeContainer().isotope("insert", projElem)
       ,
       changed: (project) ->
         qualifiedId = getQualifiedId(project)

        <div class=\"project-item-title\">#{project.title}</div>
        <div class=\"project-item-author\">#{project.owner}</div>
      </div>
      <img class=\"project-item-image\" src=\"#{getThumbnail()}\" />
    </a>
  </div>")[0]


getIsotopeContainer = () -> $("#isotope-container")

createProjectElement = (project) ->
  thumbnail = if !R.isEmpty(project.pictures || []) then project.pictures[0].url else \
      '/images/revox-reel-to-reel-resized.jpg'

  $("<div class=\"project-item\" data-id=\"#{getQualifiedId(project)}\">
