Transfer data objects from server to javascript on page load.