Create iredirector.js