# How to avoid javascript code conflict?

**URL:** <https://community.hubspot.com/t/how-to-avoid-javascript-code-conflict/109258>\
**Category:** CMS Development\
**Tags:** professional\
**Created:** [June 12, 2024, 9:50pm UTC](https://community.hubspot.com/t/how-to-avoid-javascript-code-conflict/109258 "2024-06-12T21:50:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SH82](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@SH82](https://community.hubspot.com/u/SH82)\
**Post date:** [June 12, 2024, 9:50pm UTC](https://community.hubspot.com/t/how-to-avoid-javascript-code-conflict/109258/1 "2024-06-12T21:50:18Z")

</div>

Hi, Is there any option available like scope\_css for javascript code?

if i use same module in same page its conflicting with each other.

I need to implement something like scope css.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [June 13, 2024, 3:23pm UTC](https://community.hubspot.com/t/how-to-avoid-javascript-code-conflict/109258/2 "2024-06-13T15:23:15Z")

</div>

Hey, @SH82 👋 Do you have a small code example you can share with our community members? We have many members who are proficient with JS, but likely need additional information to give you a specific suggestion.

Thanks! — Jaycee

---

<div class="post-metadata">

**Author:** ![SH82](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@SH82](https://community.hubspot.com/u/SH82)\
**Post date:** [June 13, 2024, 3:33pm UTC](https://community.hubspot.com/t/how-to-avoid-javascript-code-conflict/109258/3 "2024-06-13T15:33:21Z")

</div>

From this public codepen example:

[https://codepen.io/suru235/pen/WNxPWYZ](https://codepen.io/suru235/pen/WNxPWYZ)  
if i customize slidetime 2000 milisecond  
and after i add this same module as a 2nd carousel how could i achieve 3000 milisecond slideing inside same webpage?

in module.html i use:

```lia-code-sample
{% require_js %}
<script>
js code
</script>
{% end_require_js %}

```
