Php Loop Over Array Javascript Concat