fix array indexof not exists in ie8
update alert message for IE8 and below