ng: Modified controller as an object