Javascript Loop Through Array Of Objects Php