JS redirection corrected