Update filedelegate.js