Php Loop Through Object Array In Js