Next time we will talk more about javascript as a language, but here is a crash course for you.
We discussed the jQuery library, which provides a general interface for listening to events, inspecting, and modifying the DOM of a page, as well as performing AJAX calls. A good site where to learn about jQuery is learn.jquery.com. In particular, I strongly advise you to read the following, which presents the basis of jQuery:
Here is some detailed information on methods we used: