 
       @tlDatasets.appendChild(el)
       children = @tlDatasets.childNodes
-      loading = @tlDatasets.getElementsByClassName(@scope('loading'))
+      loading = document.getElementsByClassName(@scope('loading'))
 
       null
 

      null

    loadstart: (id, start, end, resolution) ->
      match = @svg.getElementsByClassName(id)
      if match.length > 0
        match[0].setAttribute('class', "#{match[0].getAttribute('class')} #{@scope('loading')}")
        @_empty(match[0])


      [start, end, resolution, intervals, color] = @_data[id] ? [@start - 1 , @end + 1, RESOLUTIONS[zoom - 2], [], null]

      match = document.getElementsByClassName(id)
      el = null
      if match.length > 0
        el = match[0]
