Add custom data option, switch to named event listener.
Updated.
Merge pull request #14 from kylerush/encoded-data

Encoded data