improve js loading