Javascript going down could just be a case that the job posters are assuming for all the JS libraries (node.js/React) that you know JS and not posting it in their Ad.
I don't think that the rails hit, is the result of fewer web jobs. I think it's more a case of the web is transitioning into more JS led architecture.