Reordered js import and added async attribute