Moving my JS to async