Postgres Array Append Javascript