Fix js loading issue