real time js  adds status class name to element