Use .bind(this) instead of var self = this.