script for convert dicIndex json data to AngularJS service