Modify behavior redirection jquery