Update apple_api.js