Create javascript config from json file