Postgres Select Item In Array Javascript Append Html