fixed js form redirect