Declare at the beginning on the setSTKScreen function:
var exit = document.getElementById('icc-stk-exit');
var back = document.getElementById('icc-stk-back');
var helpExit = document.getElementById('icc-stk-help-exit');

and use it instead in the switch/case