             Spree.Checkout[countryId] =
               states: data.states
               states_required: data.states_required
-            fillStates(Spree.Checkout[countryId], region)
+            Spree.fillStates(Spree.Checkout[countryId], region)
         else
-          fillStates(Spree.Checkout[countryId], region)
+          Spree.fillStates(Spree.Checkout[countryId], region)
 
-    fillStates = (data, region) ->
+    Spree.fillStates = (data, region) ->
       statesRequired = data.states_required
       states = data.states
 

        stateSelect.removeClass('required')

    ($ '#bcountry select').change ->
      updateState 'b'

    ($ '#scountry select').change ->
      updateState 's'

    updateState 'b'

    order_use_billing = ($ 'input#order_use_billing')
    order_use_billing.change ->

      else
        ($ '#shipping .inner').show()
        ($ '#shipping .inner input, #shipping .inner select').prop 'disabled', false
        Spree.updateState('s')
    
    update_shipping_form_state order_use_billing
