JavaScript callback available for when update is sent.