add .doNotKill flag + main.js exports tests