update async javascript