index.html - switched from tabs to spaces; corrected main div such that "main" is its id rather than class
scripts.js - more logging