Defined object on top of controller to get scope right.

http://stackoverflow.com/questions/12405005/angularjs-bind-scope-of-a-sw
itch-case/12414410 update2