grab singles from endpoint; format time in angularjs