Jquery is the most popular JS library. You can do lots of cool things with it, like create web sites exactly the same as Flash was creating eons ago.
Extending objects with jQuery
In JSBIN.com, add a Jquery library to the site and add this: Here is the JS to add into JS Bin. The results will output into the console.