moving json out of ui js files