Adding some comments to my javascript