Angularjs Loop Through Object Jquery Download Function In Php