you need to add "ActivityHandler" in the "global" line at the start of this file.

(sorry, this is only since I landed my jshint fixes patch)