js loading fix