using latest js page.getId method
remove unused code
use js method util.slot.getNumber for slot number