Initial revision of examples.js