fetches json from reddit and sends it back to server on page load