I am a former JavaScript developer who did that for 15 years. The I see missing most are: written communications, basic concepts of organization, data structures.
JavaScript was painful to abandon as a career. I loved the expressiveness of the language and the creativity it allowed. The jobs though were just putting text on screen and your peers were exceedingly young, insecure, and highly untrained. It’s like having a live for automobiles but becoming an auto-mechanic means your peers likely lack education, have low income potential, and drink more.
It is time for expectation management. If you want to start over in a different field you are not going to make what you making. You need to gain some experience in your new field to qualify a return to a high salary unless you can leverage your prior experience directly with credentials to laterally slide into a new field.