Fixing missing require() calls in redirect.js