There's no reason to have this property be on the viewer since all of these functions are closed over.  Just change this to `var onObjectTracked = new Event();` then you can use it below and also get rid of the second if check above.