nit: I think you don't need to put the function between parens here. I mean, gjslint doesn't throw an error in this case, so we can remove them and make this more readable.

also, use `this` instead of `self`.