fixed bug; introduced apple.js