Solucionado bug: al cerrar un alert no podía volver a mostrarlo,(It does not show up, because the alert is getting completely removed from DOM) hay que usar "hide()" en vez de "close()".