Remove the elementMain object, and just use .element (e.target) instead, to target the element from where the autocomplete was triggered.
Replace the data.gmailView functionlity with data.contentEditable.
On focus, we check if the element has the contenteditable property, or is a standard form element.
Begin work on the Yahoo Mail plugin.
Plugin architecture is mostly done, but still needs some work and guidelines, on the format of the data sent from the plugin (from, to, subject, etc.) to the main script.