Php Loop Over Array Javascript Append To Html