modify apple.js