Examples-JavaScript
Here is a link to the JavaScript Code Library, where there are many other sample programs.