Integrating JSHint and cleaning up the codebase.