Fix js code for refresh today block