fix alarm bug and modify the js error page