Update iredirector.js