Four problems I see right away.
One, you have a pair of braces without an actual statement "{ %this.emote(%emitter) }"
Two, "%this.emote(%emitter)" would cause an infinite loop, if not for the fact that...
Three, "%this.emote(%emitter);" is missing an ending semicolon.
Four, %emitter is never defined to start with.