Linting

- Add `.jshintrc` and `.jshintignore` so the updated command line version of JSHint can be used
- Trimmed trailing spaces
- Removed unused jQuery global definitions
- Changed remaining inner `pe` references to `_pe`. @pjackson28 any reason these were skipped before?
- Combined a few `var` declaration