If being "like java" was so important, then why didn't it just straight up lose to "actually java"?
I don't think that JS+DOM beating flash/java has much to do at all with "gee, this looks superficially like java, but is different enough to trip me up in rather weird ways".