Access 'moment' like we do '$'

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
Code fixes/cleanup after running JSHint
Merge pull request #267 from elasticsales/global-moment

Simple code cleanup / JSHint fixes