use .bind() instead of var that = this;