$scope.colorObj is passed by reference, no neede to return a copy