         # remainingQueries = queriesPerPoint * remainingPoints / earnedPerQueries
         queryCount = Math.ceil(per * (upTo - soFar) / earn)
       else if title is 'Connect to Facebook'
-        facebookLogin = true # free points by logging in with facebook
+        facebook = true # free points by logging in with facebook
       else if title not in ['Refer a Friend', 'Bing Newsletter']
         offers.push elem.href # add the link of the offer
-    return [offers, queryCount, facebookLogin]
-  ), offers, ARGS[2], facebookLogin
+    return [offers, queryCount, facebook]
+  ), offers, ARGS[2], facebook
 
 casper.then openDailyOffers = ->
   @each offers, (self, offer) -> # iterate over offers

  require('./libs/Microsoft.coffee').login(@, ARGS[0], ARGS[1])

casper.thenOpen DASHBOARD, openDashboard = ->
  [offers, ARGS[2], facebookLogin] = @evaluate (examineDashboard = (offers, queryCount, facebookLogin) ->
    for e in document.querySelectorAll 'ul.row li a div.check-wrapper div.open-check'
      elem = e.parentNode.parentNode
      title = elem.querySelector('.title').innerText

            word = word[0].toUpperCase() + word[1..-1] # randomly capitalize word
        # query bing with the word
        @thenOpen "http://www.bing.com/search?scope=web&setmkt=en-US&q=#{word}", (data) ->
          @echo "#{if data['status'] is 200 then ++executed else 'Failed'}#{if gen then '-gen' else ''}) #{word}"

casper.thenOpen DASHBOARD, getTotalPoints = -> # get the number of unused points on the account
  totalPoints = @getElementInfo('#user-status .user-balance .data-value-text').text
