Refactoring js showCommentList().