added comments on js