Convert config JSON to JS, separate port from host.