moving downloading of the attachments out of the content iframe, still not working in FF