change position of the js and add async