CAL-504 fix js error when open calendar app