added javascript for comments counting