/* Add Success/Error Handlers
function addHandlers(reqOptions) {
		reqOptions.success = cb => {
			if (typeof cb === 'function')
				reqOptions._onSuccess = cb;
			else
				throw Error('callback not passed to "success" method');
			return reqOptions;
		}

		reqOptions.error = cb => {
			if (typeof cb === 'function')
				reqOptions._onError = cb;
			else
				throw Error('callback not passed to "error" method');
			return reqOptions;
		}
		return reqOptions;
	}