Added more detailed comments to js files