add async to js