Changed JS scripts to use async loading