Change async javascript