use createElement instead of innerHTML