code cleanup (whitespace, syntax, unused code)
inline js/main.js (one less round-trip)