Added comments to js