avoid stopPropagation to document in standalone webapp