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

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

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



    getBillList()
    getBillTitle()
    getBillTextOnLoad()

  ])
