async js fixes