       possibleLanguage = l.options.active
 
     l.setLanguage possibleLanguage
+    this
 
   l.autodetectLanguage = ->
     $.url("?#{l.options.urlParam}") || $.cookie(l.options.cookieName) ||

      active: activeLanguage
      old: oldLanguage
    }]
    return activeLanguage

  l.isValid = (language) ->
    l.options.available.indexOf(language) != -1

  l.normalize = (language) ->
    return null if !language or typeof language != 'string'
    return language.trim().substr(0, 2).toLowerCase()

  return l


    else
      l.config arguments[0]

    this

  l.options =
    active: 'auto'
    fallback: 'en'
