Made all configurations in js file