Added initial JavaScript examples for Chapter 2.