comments to js

I added some comments to js but I don't think it will make any bigger change