var ems = document.getElementsByTagName( 'em' );
  for( var i=0; i<ems.length; i++ ){
    if( ems[i].firstChild &&
        ems[i].firstChild.nodeValue.match( /\s+?\[at]\s+?/g ) ){
      var str = ems[i].firstChild.nodeValue;
          str = str.replace( /\s+?\[(?:dot|period)]\s+?/g, '.' );  // replaces all .
          str = str.replace( /\s+?\[(?:at)]\s+?/g, '@' );          // replaces the @
          str = str.replace( /\s+?\[(?:dash|hyphen)]\s+?/g, '-' ); // replaces all -
      var a = document.createElement( 'a' );
          a.setAttribute( 'href', 'mailto:'+str );
          a.appendChild( document.createTextNode( str ) );
      ems[i].parentNode.replaceChild( a, ems[i] );
    }
  }

