Added comments to javascript file