Added Slice of Pie Pt 2 .js and index file

Also added some comments in the .js file