     # Set the variant we chose as a cookie
     @setVariantCookie(variant.name)
 
-  recordComplete: (name) =>
+  recordComplete: (name) ->
     # Record the experiment was completed on the server
     request("#{@endpoint}/complete", experiment: @name, variant: name)
 
   # Variant Cookie
 
-  getPreviousVariant: =>
+  getPreviousVariant: ->
     if name = @getVariantCookie()
       @getVariantForName(name)
 
-  getVariantCookie: =>
+  getVariantCookie: ->
     @getCookie("abbaVariant_#{@name}")
 
-  setVariantCookie: (value) =>
+  setVariantCookie: (value) ->
     @setCookie("abbaVariant_#{@name}", value, expires: @options.expires)
 
-  removeVariantCookie: =>
+  removeVariantCookie: ->
     @setCookie("abbaVariant_#{@name}", '', expires: true)
 
   # Complete Cookie
 
-  setPersistCompleteCookie: =>
+  setPersistCompleteCookie: ->
     @setCookie("abbaPersistComplete_#{@name}", '1', expires: @options.expires)
 
-  hasPersistCompleteCookie: =>
+  hasPersistCompleteCookie: ->
     !!@getCookie("abbaPersistComplete_#{@name}")
 
-  removePersistCompleteCookie: =>
+  removePersistCompleteCookie: ->
     @setCookie("abbaPersistComplete_#{@name}", '', expires: true)
 
   setCookie: (name, value, options = {}) ->

    @useVariant(variant)
    this

  complete: (name) =>
    # Optionally pass a name, or read from the cookie
    name or= @getVariantCookie()
    return this unless name

    @recordComplete(name)
    this

  reset: ->
    @removeVariantCookie()
    @removePersistCompleteCookie()
    @result = null
