# Mystery index.js file?

**URL:** <https://forums.realmacsoftware.com/t/mystery-index-js-file/51988>\
**Category:** Elements\
**Created:** [October 24, 2025, 11:31am UTC](https://forums.realmacsoftware.com/t/mystery-index-js-file/51988 "2025-10-24T11:31:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![logrunner](https://avatars.discourse-cdn.com/v4/letter/l/59ef9b/32.png) [@logrunner](https://forums.realmacsoftware.com/u/logrunner)\
**Post date:** [October 24, 2025, 11:31am UTC](https://forums.realmacsoftware.com/t/mystery-index-js-file/51988/1 "2025-10-24T11:31:57Z")

</div>

It is probably something I have done but have been unable to track it down so far. 😕

In my published site, I have a javascript file **index.js** for all published pages.

The contents are similar to this:

```auto

var RWElements={};

RWElements.rw2143BA57_10C4_4929_955F_980A94EC70B5 = {};
RWElements.rw2143BA57_10C4_4929_955F_980A94EC70B5 = (function(componentId) {
    
console.log(`Running JS for element with id: `)

return componentId;})(RWElements.rw2143BA57_10C4_4929_955F_980A94EC70B5);

```

The _RWElements.rw2143BA57\_10C4\_4929\_955F\_980A94EC70B5_ is different for every file.

I don’t want the console log message to appear. Any clues as to what would cause this javascript file to be created and how I can track down why it is created?

---

<div class="post-metadata">

**Author:** ![Ulrich](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ulrich/32/29764_2.png) [@Ulrich](https://forums.realmacsoftware.com/u/Ulrich)\
**Post date:** [October 27, 2025, 1:15pm UTC](https://forums.realmacsoftware.com/t/mystery-index-js-file/51988/2 "2025-10-27T13:15:28Z")

</div>

If you start an HTML-Element this is the default js.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/3/b/3b7d40c22d798251776b58c492b3685ca2245e65.png)

---

<div class="post-metadata">

**Author:** ![logrunner](https://avatars.discourse-cdn.com/v4/letter/l/59ef9b/32.png) [@logrunner](https://forums.realmacsoftware.com/u/logrunner)\
**Post date:** [October 27, 2025, 1:57pm UTC](https://forums.realmacsoftware.com/t/mystery-index-js-file/51988/3 "2025-10-27T13:57:20Z")

</div>

Thank you 🙏

It was in an HTML component (in a Global) I was using on every page. So a one line deletion and problem solved. 🙂
