# JavaScript Service dose not exist

**URL:** <https://forum.webostv.developer.lge.com/t/javascript-service-dose-not-exist/4591>\
**Category:** Web App Development\
**Created:** [December 1, 2023, 8:25am UTC](https://forum.webostv.developer.lge.com/t/javascript-service-dose-not-exist/4591 "2023-12-01T08:25:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dPCoP](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@dPCoP](https://forum.webostv.developer.lge.com/u/dPCoP)\
**Post date:** [December 1, 2023, 8:25am UTC](https://forum.webostv.developer.lge.com/t/javascript-service-dose-not-exist/4591/1 "2023-12-01T08:25:47Z")

</div>

![image](https://canada1.discourse-cdn.com/flex030/uploads/webostv/original/1X/bfbc9ba08566b40d4c5e0c8e92002af3d17efeaf.png)

```auto
var pkgInfo = require('./package.json');
var Service = require('webos-service');
var greeting = "Hello, World!";

var service = new Service('fit-webos-app.helloworld');
service.register('hello', function (message) {
  message.respond({
    greeting: 'Hello, World!',
  });
});

```

I want to use a JavaScript Service in a WebOS TV application using Enactjs. I initialized the service and the results came out like the image above. How to call correctly? And explain to me whether the application on TV supports running in the background with the operating system? Any relevant answers. Thank!  
The code I call the service:

```auto
new LS2Request().send({
	service: "fit-webos-app.helloworld",
	onSuccess: function (inResponse) {
		console.log("Successfully helloworld ======>", inResponse);
	},
	onFailure: function (inError) {
		console.log("Failed to helloworld ======>", inError);
	},
})

```

---

<div class="post-metadata">

**Author:** ![narae0.kim](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@narae0.kim](https://forum.webostv.developer.lge.com/u/narae0.kim)\
**Post date:** [December 4, 2023, 5:49am UTC](https://forum.webostv.developer.lge.com/t/javascript-service-dose-not-exist/4591/2 "2023-12-04T05:49:16Z")

</div>

Luna Service does not allow minus signs (-) in a JS service name. Therefore, if you are to add JS services into your app, please do not include minus signs (-) in your app ID. For more information, please refer to [JS Service Usage](https://webostv.developer.lge.com/develop/guides/js-service-usage). Thank you.
