(Settings) Code cleanup (inspections, hinting, linting)

- Ran thorough JS Webstorm inspection tasks and made all necessary corrections
- Ran JSHint and JSLint and made all necessary corrections