Fix JS redirection path