Destroy modal window after JS test.