In reply to Laura.

JavaScript is not making a return. It has been part of the web for decades, and even today WordPress contains thousands of lines of JavaScript.
Browsers have built-in interpreters so websites can run JavaScript.

On the other hand, there are browser plugins so you can run Java Applets, and yes, there have been security issues with this.
Java itself can be used to create dynamic websites just like PHP.