updated template, base.js, several examples.