Remove anchor from url jquery