setUserProperties -> setGlobalUserProperties

amplitude.setUserProperties doesn't seem to be defined as a method, and gave me a 'function is undefined' error.

setGlobalUserProperties, however, is defined.