Fixed some warnings uglifyjs gave when compressing.
Merge pull request #841 from CmdrMoozy/uglifyjs-lint

Fixed some warnings uglifyjs gave when compressing.
fix lengthy durations not being cloned properly

``moment.duration`` when passed a lengthy duration may return a
duration that is not equal to the input.  Add a test and a fix for
this bug.