removing alert from javascript