panorama: fixed undefined js value