Adds logging, adds HTML for js image loading