Simple code cleanup / JSHint fixes

- It's a step in the right direction for accessing 'moment' so we can eventually avoid the console warning caused by https://github.com/moment/moment/pull/1220
- Other simple code fixes/cleanup after running JSHint - brought the # of warnings way down.