fix typo+dom not ready+unclose div tag