panorama: fixed js error