adjusting js loading