Updated coordinate-table functions in js