Php Loop Through Object Array In Javascript Code