Cleaned up JS via JSHint