Fix Illegal return statement on redirection.js