Remove inline JSHint overrides

This change removes this inline JSHint overrides and cleans up the code that required them to be in place.

Some of the code changes may seem useless, as they are just reformatting or restructuring existing logic. However, locking down JSHint as much as possible is a worthwhile effort. It will help prevent errors from sneaking up on you. enforce coding standards for pull requests, and make it easier for others to integrate with their projects.