There is definitely ageism in tech, but 39 isn't old. I'd be happy to take a look at your resume and provide advice if you give me a way to contact you. But it sounds like the issue isn't your resume... indeed you are getting lots of interviews, so maybe it's something you are doing in the interview process. Do you have a sense of where things go wrong? Are you often getting to the final stage before hearing no?