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

    while x < vendors.length and not window.requestAnimationFrame
      window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame']
      window.cancelAnimationFrame =
        window[vendors[x] + 'CancelAnimationFrame'] || window[vendors[x] + 'CancelRequestAnimationFrame']

    unless window.requestAnimationFrame
      window.requestAnimationFrame = (callback, element) ->

###*
 * @author inorganik
 * @example
 * numAnim = new countUp(
 *   document.getElementById("SomeElementYouWantToAnimate"),
 *   99.99,
 *   2,
 *   1500
 * );
 * numAnim.start();
 * @version 0.0.6
###
class countUp
