got rid of my log messages and converted downloads.js to HTML method