Added the Spree.key to token property to successfully call up the spree api. This function was sidestepping the Spree.ajax global function for some reason.