added data param to 'trigger' method.
added AMD/module support.