That 1965 immigration act was a John Kennedy idea carried forward by his little brother Ted. So we might not have escaped the disaster even if JFK had lived.
You are correct on JFK & his immigration nonsense. If he had lived the Democrats most likely would not have swept to very large majorities in 64 & the 65 bill could have been blocked.