Fixing attachevent.js