added host variable in config.js and removed states in code