Postgresql Row To Array Javascript Mdn Dom Events