JS adding total number of comments to content - bug fix