added the comments js file
updated the index function