web.js redirect with advice from Csaba