Update api-proxy.js

Return after next calls