js wrapper for currency cloud api