got js to work async