Code snippet of how to preview an image in an existing page using only plain Javascript and AJAX. Uses the Imgur API.