JavaScript - Close Current Tab on Button Click with Confirmation.