         return result
 
     return this
-])
-
-module.run((teaSelection, localize) ->
+)
+
+angular.module('tea').run((teaSelection, localize) ->
     localize.initLocalizedResources()
     teaSelection.init()
 )
 
-@ControlPanelController = ($scope, $timeout, teaSelection, localize) ->
+angular.module('tea').controller("ControlPanelController", ($scope, $timeout, teaSelection, localize) ->
     self = this
 
     $scope.radio = {index: 0}

#Initialization code
$(document).ready ->
    #check webkit notification
    if (!window.webkitNotifications)
        $("#notification_not_found").show()
        $('#btn-run').toggleClass('disabled')



    this.setFromSelection(teaSelection.getSelection())
)

#Utils
class Utils
