Corrected Example 1 and uploading example 2

Wilton, P., & McPeak, J. (2010). Beginning JavaScript (4th Edition
ed.). Wiley Publishing, Inc. .