make jshint happy

This fixes all warnings from jshint for `site.js`. I'm not sure how important any of these are: the semicolons and string formatting seem trivial. Maybe the changes to operators and variable naming are more interesting: http://stackoverflow.com/a/359509/908390 and http://stackoverflow.com/a/19412781/908390 touch on those.