added in all comments to the js file