# Custom Dashboard in Kibana 4.6.1

**URL:** <https://discuss.elastic.co/t/custom-dashboard-in-kibana-4-6-1/64835>\
**Category:** Kibana\
**Created:** [November 3, 2016, 10:17am UTC](https://discuss.elastic.co/t/custom-dashboard-in-kibana-4-6-1/64835 "2016-11-03T10:17:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vvs14](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vvs14/32/11328_2.png) [@vvs14](https://discuss.elastic.co/u/vvs14)\
**Post date:** [November 3, 2016, 10:17am UTC](https://discuss.elastic.co/t/custom-dashboard-in-kibana-4-6-1/64835/1 "2016-11-03T10:17:04Z")

</div>

I am trying to upgrade Kibana from 4.1.4 to 4.6.1. I have JS file, call it X.js, to customize the Default dashboard.  
In 4.1.4, we were loading X.js from `kibanaDir/src/public/index.js` file using snippet  
\> $.getScript("manipulate.js", function(){

> ```
> console.log('Loaded manipulate script');
> 
> ```
> 
> });

It was working fine.  
Now in 4.6.1, directory structure has been changed a lot. I am trying to load same script from `kibanaDir/optimize/bundles/kibana.bundle.js` using same code and X.js is in same location. It does not work.

When I tried to debug it using browsers console, the URL to get X.js file was  
`http://localhost:5601/app/optimize/bundles/X.js`, which gave me 404 error. How to do this?  
I am very beginner in JS.  
Any leads would be appreciated.

---

<div class="post-metadata">

**Author:** ![vvs14](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vvs14/32/11328_2.png) [@vvs14](https://discuss.elastic.co/u/vvs14)\
**Post date:** [November 3, 2016, 10:57am UTC](https://discuss.elastic.co/t/custom-dashboard-in-kibana-4-6-1/64835/2 "2016-11-03T10:57:17Z")

</div>

I was able to do it with modifying the code as

> $.getScript("/bundles/manipulate.js", function(){  
> console.log('Loaded manipulate script');  
> });

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:34pm UTC](https://discuss.elastic.co/t/custom-dashboard-in-kibana-4-6-1/64835/3 "2017-07-06T13:34:47Z")

</div>


