 
   reset: ->
     stop()
-    @doc.innerHTML = @addCommas startVal.toFixed(decimals)
+    @target.innerHTML = @addCommas startVal.toFixed(decimals)
 
   resume: ->
     @startTime = null

      requestAnimationFrame @count
    else
      console.log('countUp error: startVal or endVal is not a number')
      @doc.innerHTML = '--'
    false

  stop: ->

        clearTimeout id

  # format startVal on initialization
  @target.innerHTML = @addCommas startVal.toFixed(decimals)

  # Robert Penner's easeOutExpo
  easeOutExpo: (t, b, c, d) ->
