This isn't entirely correct. If you're just talking about enhancing a web page, then ok sure Javascript is more widely used. However, if you're talking about building Rich Internet Applications, Flex is many lightyears ahead of what JavaScript has to offer.