The ancestor is called WebAssembly. It would be simply crazy to bet one's career on JS now. Pick a solid non-fringe functional language which compiles to LLVM. It will run in browser in 2-3 years.
I have no issue with javascript fading away over time, that's just not what's happening right now.