Paul's suggestion about the scope made something click. I checked my other code and it finally stood out the in my working code I had to put "window" in front of the call to SPServices.
window.$().SPSerivces
This code is working now.
window.$().SPSerivces
This code is working now.