--- title: "Using Badger" slug: "using-badger" updated: 2026-04-16T17:43:26Z published: 2026-04-16T17:43:26Z canonical: "docs.developer.comcast.com/using-badger" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.developer.comcast.com/llms.txt > Use this file to discover all available pages before exploring further. # Using the X1 JavaScript API ## Using the X1 JavaScript API Include the X1 JavaScript API file in your X1 app via the `<script>` tag: ``` ``` Once you have included the X1 JavaScript API in your X1 app, it can be accessed in your code via the variable $badger. **Load $badger early** $badger should be the first script loaded in your app's main file. Loading $badger late, or in component files, can result in race conditions and other unintended errors. Upon approval of your application you will have access to the X1 Javascript API. Your Comcast partner manager will be able to support you with any issues or requesting additional access.