Completed JavaScript & PHP exercise in Chapter 11