Cant use function

Im tring to execute a function, but i get this error :
(Its a led controlling app)
Error : UX function not found: ‘SetColor’?: Error : Object reference not set to an instance of an object
there my code :
50
JS:
44

The callback just expects a name, you need to use an Observable instead of calling a function with parameters from UX.