Chapter 4. Templates and JavaScript