fixed js loading problem