added apple.js