removed alert from javascript