apple.js: bugfix in detail widget