Added addresses, organized main.js
Re-added hook to tries counter index.html