fix js loading