Fixed JSHint warnings.
Fixed global leaks.

Bug in https://github.com/flatiron/revalidator; workaround by removing inadvertent declaration of `window` as a global variable.
Merge branch 'feature/global-leaks' into develop