Added support for trigger attribute

Refactored code to use .data() exclusively, simplifying numerous evaluations throughout the script
Merge pull request #15 from Mathachew/dev

Slight refactoring and character trigger support