cleanup code a bit

Some formatting, some logic
> because its nice to know what variables are being used in a method.

This is a stylistic preference, and I'm actually of the opinion that it leads to more difficult to read, and change code.

Opinions aside, it's less consistent with the rest of the contrib suite, which defines variables closer to where they're used. And for this library I think consistency with the other grunt-contrib libraries is more important than jQuery consistency :)

This PR is :+1: if you change this back.