Angularjs use scope variables in controller example