Added the javascript required to count comments