make logic.jsm to work with all TB versions