changed scripts to load async