Use .bind(this) in place of self. Attach modal to document instead of footer. All magic numbers derived from this.b.