Add comment to references chart method in JS