Print HTML tables correctly via Javascript across all browsers.