Php Loop Over Array Javascript Push Object To Array