Added proper comments to js files