Fixed js loading issue