Commented js file for Group 2 assignment