Redraw js event