AngularJS Alternative approach to controller
use this keyword