Moving the inline js into a separate file and setting it to load the js
async