fix synthax error in angular controller