Replace configuration js code from index.html to script.js file