JavaScript redirect with params.