Added ID url to env configs and made switch work in JS too