bullshit.
nobody hires a 55 year old javascript coder. i mean, just look at the usual suspects here on hackernews. look around you.
and this is not about skills. but about money, plain and simple. if you've been working for 25 years, your salary demands have risen. at least that is what everyone assumes. so congrats on submitting your resume, but you'll get filtered out right away cause younger people are cheaper, with the same skill set.
but isn't there added value in the wisdom that age brings? sure. but where is this a criterium? does a job posting for an experienced java coder mean that you should have been in the industry for at least 15 years? of course not.
if you're reaching 50 in technology, you need to find an exit scenario. government, management, teaching.