Php Loop Over Array Javascript Push Object