JS - Convert Tables to Divs