Fix race condition with innerHTML
add feature css class