Fixed deprecated warning for 'add' method.

The latest version of `moment.js` (version 2.8.1 as of writing) gives deprecated warnings on the use of `add(period, number)`. I swapped the parameters on these calls to fix the warnings.

The file itself was auto formatted to remove some strange spacing and inconsistent indents.