File a complaint with the TSA and copy AS?
https://www.tsa.gov/contact-center/form/complaints
I bet if every AS traveler experiencing TSA rudeness at JFK was contacting AS about it, they might eventually get in touch with someone at the airport or agency.
If you end up flying B6 or another airline when AS was otherwise your preferred choice, send the ticket receipt to AS and tell them why you booked away from them.