apple.js: bugfix