JS: send ajax request on button confirm click