Refactored new.js for better readability
Refactored download link controls into a toggle function for better readability
Updated comments