Async js fix