fixed js error in ie8 or less when opening calendar