thread.js event stopPropagation to preventDefault