alert js fix in chrome