Listened to JSHint and fixed lots of issues: duplicate jquery selectors, small bugs, unused variables, etc.