Hide the wait dialog after JS changes.