Added some helper functions to ports_row.js