fixing jshint findings on task component
fixing jshint findings in resident component