History of Java script
Java script was developed by Brendan Eich in 1995. But before the name "Javascript", it was originally named "Mocha" followed by the name "Live script" and then later on "Java script".
Why and when Java script codes were beginning to be implemented?
Before all the web applications were purely made out of HTML and CSS codes. But as the web applications developed along with the time just HTML and CSS weren't enough. Hence Java script came into the picture. Developers started using Java script codes along with HTML CSS codes for better functioning of the websites.
Here's an image from "freecodecamp.org" showing what a website looks like without Javascript.
https://cdn-media-1.freecodecamp.org/images/QYj-p9IsGIIpsB8oFUQEBJN5aGIjapQbk7-A
This is a YouTube website without Javascript codes. We can see what would be a website without Javascript. Reduced functionalities, unattractive, no user experience all these kinds of problems would occur in the absence of Javascript.
In today's day and age, almost every web application uses Javascript. No web application can be seen without the use of Javascript. Hence it is one of the most important tools in development of the websites.

