JSON loads while rendering page