Fix some async bullshit. I don't understand JS at all :(