Fixed syntax error.
Added class to triggering element.
Merge pull request #1 from Sanchiz/master

Fixed syntax error. Improved logic for triggering element.