js control Asynchronous