Set async for javascript