fix weird js error
pull alert from js