Removed event.preventDefault from on_close, because its  redundant.. Should fix #15