  var em = document.getElementById('email');
  var str = em.innerHTML;

      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 -
      
  //Create the mailto link
  var a = document.createElement( 'a' );
      a.setAttribute( 'href', 'mailto:'+str );
      a.appendChild( document.createTextNode( str ) );
  // Swap out the old skool email, replacing it with our creation. 
  em.parentNode.replaceChild( a, em );