Fix js refresh