Added code for 2nd part. Initial explanation of 2nd part. Still need explanation of HTML5Rocks functions.