Replace this.attr with @attr

Also removed console.log call