Various Javascript examples for a tutorial