Update myapi.js