       billCode = makeBillCode()
       $location.path("bills/#{billCode}")
       getBillText makeBillUrl(billCode)
+      getBillTitle()
 
 
     makeBillCode = ->

        method: "GET"
        url: "http://congress.api.sunlightfoundation.com/bills?apikey=3cdfa27b289e4d4090fd1b176c45e6cf&per_page=100&page=1"
      ).success((data, status) ->
        console.log "Initial 'getBillList' data below:"
        console.log data
        $scope.bills = data.results
      ).error (data, status) ->
        console.log "Error #{status}: #{data}"

        else
          $scope.title = "#{data.results[0].bill_type.toUpperCase()} #{data.results[0].number}"
      ).error (data, status) ->
        console.log "Error #{status}: #{data} (thrown by getBillTitle)"

    getQueryListOfBills = ->
      query = $scope.bill_query.replace(/\s/g, '%20')
