JS - Merge Table Data