fix js loading issue