removing alert in js