(() => { function drawFace(ret) { if(!ret) { g.clear(); E.showMessage("Testmessage from pi.memorytrainer.js!", "TEST"); ret = true; } return ret; } return { drawFace: drawFace, call_interval: 1000 }; })();