added config js and related changes