added comments to javascript file