Add parameter to be compatible with old template

Since angular 1.3, the global controller constructor are not allowed. https://github.com/angular/angular.js/commit/3f2232b5a181512fac23775b1df4a6ebda67d018
Addition of this code to be compatible with some custom templates.