fixed innerHTML insertion of tables for ie9