Added comments in the 2 javascript files