Javascript examples from books