Playing with elastic search with angularJS and Chart.js