Made alert in error-handler instead of .log js/console