Changed changeTriggers example

The current example is not valid javascript. I'm not sure my proposal is the correct format but it seems to work.