angularJS, node to impelemt a web site about group-by