add some comments to js