Resolving some JSHint warnings

Should resolve most of the JSHint warnings from the gruntjs branch.
I can recheck once the PRs get merged