ECMS-6537 add missing javascript variable declaration