add some comments to js codes