You dropped below the threshold for earning that badge (you currently only have 99 answered questions under JavaScript), so the badge was retracted. While most badges are normally never taken away (except for extreme circumstances), tag badges are immediately taken away when you no longer meet the criteria.
From How do “badges” work?:
What can cause a badge to be lost/revoked/taken away after it is awarded?
The Stack Exchange administration has stated repeatedly that "regular" badges never go away unless they were obtained by heinous cheating. Behavior that qualifies as "heinous" is defined by devs on a case-by-case basis, but here are some guidelines:
- using a bunch of sockpuppets to upvote posts by your main account for Enlightened or Nice Question qualifies as "heinous"
- downvoting something and then immediately undoing your downvote just so you get Critic for free is kinda dumb, but not "heinous"
Tag badges, on the other hand, disappear immediately if you ever cease to meet their criteria, which could happen through deletion or downvotes.