fix js loading problem