# Javascript game .bank file integration

**URL:** https://qa.fmod.com/t/javascript-game-bank-file-integration/15235
**Category:** FMOD Studio
**Created:** [November 20, 2019, 2:07pm UTC](https://qa.fmod.com/t/javascript-game-bank-file-integration/15235 "2019-11-20T14:07:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![GiantDad](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@GiantDad](https://qa.fmod.com/u/GiantDad)
#### Post date: [November 20, 2019, 2:07pm UTC](https://qa.fmod.com/t/javascript-game-bank-file-integration/15235/1 "2019-11-20T14:07:15Z")

</div>

I want to use a .bank file for my JavaScript Phaser game. But I cannot find any examples on the internet. Due to that I’m asking it here.  
Q1: Can I use .bank in JavaScript?  
Q2: How do I use it?

I would love to hear if someone knows the answers, because right now I’m a little stuck.  
Thanks in advance!

---

<div class="post-metadata">

### Author: ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)
#### Post date: [November 22, 2019, 2:51am UTC](https://qa.fmod.com/t/javascript-game-bank-file-integration/15235/2 "2019-11-22T02:51:35Z")

</div>

For your first question - Yes, you can use .bank files and a subset of the FMOD Studio API with Javascript

For your second question - In order to load bank files you will need to set up a server as Javascript cannot load local files normally. You can simulate a server locally using add-ons such as [Web Server for Chrome](https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb).

Now you can load banks using the Javascript API `Studio.System.loadBankFile()`.

[https://www.fmod.com/resources/documentation-api?version=2.0&page=studio-api-system.html#studio\_system\_loadbankfile](https://www.fmod.com/resources/documentation-api?version=2.0&page=studio-api-system.html#studio_system_loadbankfile)

Read more on the getting started in and using the Javascript API in our documentation:

[https://www.fmod.com/resources/documentation-api?version=2.0&page=platforms-html5.html](https://www.fmod.com/resources/documentation-api?version=2.0&page=platforms-html5.html)
