Did you know the new Google Pacman was created in HTML 5? This is amazing isn't it usually games like this are made in gaming code like C#! It makes you wonder how powerful HTML 5 as a coding language is !
Right, it was released in 1980 on machines with a 3 MHz single-core Z80 processor, or less than 1/6,000 the power of a modern desktop.
Google Pacman was more Javascript that HTML5. Javascript is old but it is still very powerful and widely used. Choose your tools based on the requirements, there is no "best" option for all.
Take facebook for example - heavily reliant on Javascript.