added example for the "useDom" option