Use DOM method instead of 'innerHTML' property