Fixed register()

- Updated '_this' to 'this' passed to the 'angular.forEach' method. The older value caused an error to be thrown due to '_this' being nonexistent.